package com.lanou.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName CourseRating
 * @Description TODO
 * @Author cuiruitong
 * @Date 2025年08月13日 14:41
 * @Version 1.0
 */
@Data
public class CourseRating {
    private Integer id;
    private String ratingContent;
    private Integer userId;
    private Integer starLevel;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    private Integer courseId;

    //关联用户表
    private User user;
}
